# coding=utf-8
from redis import StrictRedis,ConnectionPool


# redis 连接池
pool = ConnectionPool.from_url("redis://@192.168.1.130:9901/0")
redis = StrictRedis(connection_pool=pool)
redis.lpush("douban_spider:start_urls", "https://www.douban.com/group/explore")
pool.disconnect()